package com.bracketbird.client.gui.club.tournament;


import com.google.gwt.dom.client.*;
import com.google.gwt.user.client.ui.*;
import com.bracketbird.clientcore.appcontrol.*;
import com.bracketbird.clientcore.gui.*;
import com.bracketbird.clientcore.style.*;

/**
 *
 */
public class RunningTournamentPage extends Page<RunningTournamentPageController> {

    private DockLayoutPanel p = new DockLayoutPanel(Style.Unit.PX);
    private SimplePanelComponent content = new SimplePanelComponent();

    public RunningTournamentPage() {
        super();
    }

    public void init() {


        p.addNorth(RunningTournamentTop.getInstance(), 140);
        StyleIt.add(RunningTournamentTop.getInstance(), new TextLayout(null, "100%"));

        ScrollPanelComponent scrollPanel = new ScrollPanelComponent(content);
        p.add(scrollPanel);
        StyleIt.add(scrollPanel, new TextLayout("100%", "100%"));
        RootLayoutPanel.get().add(p);
        

    }

    protected void setSubPageHolder(Page subPage) {
        content.add(subPage, new TextLayout(null, "100%"));
    }

}